package android.framework.binding.converters;

public class ConverterHelper {
	public static <T,G> IConverter<G,T> getOposite(final IConverter<T, G> converter){
		return new IConverter<G, T>() {

			public T convertTo(G value) {
				return converter.convertFrom(value);
			}

			public G convertFrom(T value) {
				return converter.convertTo(value);
			}
		};
	}
}
